package com.nbsaas.boot.merchant.rest.convert;

import com.nbsaas.boot.merchant.data.entity.MerchantReview;
import com.nbsaas.boot.merchant.api.domain.simple.MerchantReviewSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 商家评价-列表对象转换器
*/

public class MerchantReviewSimpleConvert implements Converter<MerchantReviewSimple, MerchantReview> {




@Override
public MerchantReviewSimple convert(MerchantReview source) {
    MerchantReviewSimple result = new MerchantReviewSimple();

                result.setImages(source.getImages());
                result.setOrderId(source.getOrderId());
                result.setRating(source.getRating());
                result.setServiceRating(source.getServiceRating());
                result.setQualityRating(source.getQualityRating());
                result.setUserId(source.getUserId());
                result.setAddDate(source.getAddDate());
                result.setDeliveryRating(source.getDeliveryRating());
                result.setContent(source.getContent());
                result.setRecommended(source.getRecommended());
                result.setReplyTime(source.getReplyTime());
                result.setMerchantId(source.getMerchantId());
                result.setReplyContent(source.getReplyContent());
                result.setId(source.getId());
                result.setStatus(source.getStatus());
                result.setLastDate(source.getLastDate());


    return result;
}

}